Process snapshhot for worker service

Dani_S 2,886 Reputation points
2024-05-14T03:36:41.0233333+00:00

Hi,

I have worker service and i have shceduler running in it.

How to take process snapshots and examine what is blocking/hanging in it?

Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,467 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiale Xue - MSFT 37,131 Reputation points Microsoft Vendor
    2024-05-14T07:11:53.7566667+00:00

    Hi @Dani_S , Welcome to Microsoft Q&A,

    This code starts the Notepad application, waits for a while, takes a snapshot of the Notepad process, and checks whether the process is responding. At the same time, it will also output some basic information about the process, such as process name, process ID, basic priority, startup time and physical memory usage. You can modify the code to suit your Worker Service as needed.

    enter image description here

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.